//package Java基础.线程池;
//
//import javassist.ClassPool;
//import javassist.bytecode.BadBytecode;
//import javassist.bytecode.CodeIterator;
//import javassist.bytecode.ConstPool;
//import javassist.bytecode.MethodInfo;
//import javassist.bytecode.analysis.Executor;
//import javassist.bytecode.analysis.Frame;
//import javassist.bytecode.analysis.Subroutine;
//
//import java.util.concurrent.BlockingDeque;
//import java.util.concurrent.Executors;
//import java.util.concurrent.atomic.AtomicInteger;
//
//public class MyThreadPoolExecutor extends Executor {
//
//    private final AtomicInteger ctl = new AtomicInteger(0);
//
//    private volatile int corePoolSize;
//    private volatile int maximumPoolSize;
//
//    private final BlockingDeque<Runnable> workQueue;
//
//
////    public MyThreadPoolExecutor(int corePoolSize, int maximumPoolSize, BlockingDeque<Runnable> workQueue) {
////        this.corePoolSize = corePoolSize;
////        this.maximumPoolSize = maximumPoolSize;
////        this.workQueue = workQueue;
////    }
//
//    @Override
//    public void execute(MethodInfo method, int pos, CodeIterator iter, Frame frame, Subroutine subroutine) throws BadBytecode {
//
//    }
//
//    private void reject() {
//
//    }
//
//    private boolean addWorker(Runnable firstTask) {
//        return true;
//    }
//
//
//    private final class Worker implements Runnable {
//        final Thread thread;
//        Runnable firstTask;
//
//        private Worker(Runnable firstTask) {
//            this.thread = new Thread(this);
//            this.firstTask = firstTask;
//        }
//
//        @Override
//        public void run() {
//            Runnable task = firstTask;
//            try {
//
//            } finally {
//
//            }
//        }
//    }
//
//
//}
